package FIT::Document::Transformer::Replace;

use FIT::Class;
use FIT::Document::Parser::Twig;

extends 'FIT::Document::Transformer::Base';

has element => (is => 'ro', isa => 'XML::Twig::Elt', required => 1);

sub _transform {
    my $old = shift;
    my $new = $self->element;
    $old->set_inner_xml( $new->inner_xml );
}
